package com.study.bigdata.spark.core.summer.controller

import com.study.bigdata.spark.core.summer.common.TController
import com.study.bigdata.spark.core.summer.service.{HotCategeryTop10Service, HotCategeryTop10SessionService}
import com.study.bigdata.spark.core.summer.service.HotCategeryTop10Service

class HotCategoryTop10SessionController extends TController{
  private val hotCategeryTop10Service =new HotCategeryTop10Service
  private val hotCategeryTop10SessionService =new HotCategeryTop10SessionService

  override def dispatch(): Unit ={
    val top10 = hotCategeryTop10Service.analysis()
    val result = hotCategeryTop10SessionService.analysis(top10.map(_._1))
    result.foreach(println)

  }
}
